package com.morningstar.system.satoken;

import cn.dev33.satoken.stp.StpUtil;
import com.morningstar.common.dao.config.LogonUser;
import org.springframework.stereotype.Component;

@Component
public class LogonUserService implements LogonUser {
    @Override
    public Long getLogonUserId() {
        return StpUtil.getLoginIdAsLong();
    }
}
